<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>  
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>    
<div class="data_list">
	  		<div class="data_list_title">
			<img src="${pageContext.request.contextPath}/static/images/list_icon.png"/>
			最新博客</div>
	  		
	  		<div class="datas">
	  			<ul>
	  				<c:forEach  var="blog" items="${blogList}">
	  				<li style="margin-bottom: 30px">
	  					<span class="date"><a href="${pageContext.request.contextPath}/blog/articles/${blog.id}.html"><fmt:formatDate pattern="yyyy年MM月dd日" type="date" value="${blog.releaseDate}"/></a></span>
					  	<span class="title"><a href="${pageContext.request.contextPath}/blog/articles/${blog.id}.html">${blog.title}</a></span>
					  	<span class="summary">摘要: ${blog.summary}...</span>
					  	<span class="img">
					  		<c:forEach var="image" items="${blog.imageList }">
						  		<a href="${pageContext.request.contextPath}/blog/articles/${blog.id }.html">${image}</a>
						  		&nbsp;&nbsp;
					  		</c:forEach>
					  	</span>
					  	<span class="info">发表于 <fmt:formatDate pattern="yyyy-MM-dd HH:mm" type="date" value="${blog.releaseDate}"/> 阅读(${blog.clickHit}) 评论(${blog.replyHit}) </span>
	  					
	  				</li>
	  				 <hr style="height:5px;border:none;border-top:1px dashed gray;padding-bottom:  10px;" />
	  				</c:forEach>
	  				
	  			</ul>
	  		</div>
	  	</div>
	  	
	  	
	  	<div>
	<nav>
	  <ul class="pagination pagination-sm">
	  	${pageCode }
	  </ul>
	</nav>
 </div>
	  	